---
title: "Add a gallery image"
method: POST
path: "/project/{id|slug}/gallery"
tags: ["projects"]
---

# Add a gallery image

`POST /project/{id|slug}/gallery`

Modrinth allows you to upload files of up to 5MiB to a project's gallery.

## Query parameters

- `ext` 'png' | 'jpg' | 'jpeg' | 'bmp' | 'gif' | 'webp' | 'svg' | 'svgz' | 'rgb', required
- `featured` boolean, required
- `title` string
- `description` string
- `ordering` integer

## Response `204`

Expected response to a valid request

## Other responses

- `400` — Request was invalid, see given error
- `401` — Incorrect token scopes or no authorization to access the requested item(s)
- `404` — The requested item(s) were not found or no authorization to access the requested item(s)

---

[API](https://skmtc.net/modrinth/apis/labrinth.md) · [All operations](https://skmtc.net/modrinth/apis/labrinth/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modrinth/labrinth/versions/439f357e772d/schema)
